using System.Windows.Controls;
using System.Windows.Data;

namespace SL_PosterousAPITest
{
    public class WebNavigateConverter : IValueConverter
    {

        #region IValueConverter Members

        public object Convert(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var browser = parameter as WebBrowser;
            if (browser != null)
            {
                browser.NavigateToString(value.ToString());
            }

            return value;
        }

        public object ConvertBack(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new System.NotImplementedException();
        }

        #endregion
    }
}